package com.elvin.wx.beans;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 无线设备量程表
 * </p>
 *
 * @author zhenchl
 * @since 2022-01-14
 */
@TableName("fn_wireless_range")
public class WireDevRange extends Model<WireDevRange> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 数据流id
     */
    private String datastreamId;
    /**
     * 设备id
     */
    private String devId;
    /**
     * 压力上量程
     */
    private Float pressureUpperRange;
    /**
     * 压力下量程
     */
    private Float pressureUnderRange;
    /**
     * 压力量程单位
     */
    private String pressureRangeUnit;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建日期", required =false,hidden=true)
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDatastreamId() {
        return datastreamId;
    }

    public void setDatastreamId(String datastreamId) {
        this.datastreamId = datastreamId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public Float getPressureUpperRange() {
        return pressureUpperRange;
    }

    public void setPressureUpperRange(Float pressureUpperRange) {
        this.pressureUpperRange = pressureUpperRange;
    }

    public Float getPressureUnderRange() {
        return pressureUnderRange;
    }

    public void setPressureUnderRange(Float pressureUnderRange) {
        this.pressureUnderRange = pressureUnderRange;
    }

    public String getPressureRangeUnit() {
        return pressureRangeUnit;
    }

    public void setPressureRangeUnit(String pressureRangeUnit) {
        this.pressureRangeUnit = pressureRangeUnit;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WireDevRange{" +
        "id=" + id +
        ", datastreamId=" + datastreamId +
        ", devId=" + devId +
        ", pressureUpperRange=" + pressureUpperRange +
        ", pressureUnderRange=" + pressureUnderRange +
        ", pressureRangeUnit=" + pressureRangeUnit +
        ", createTime=" + createTime +
        "}";
    }
}
